<?php

namespace App\Http\Controllers\admin;

use App\Dao\OrdersDao;
use App\Dao\UsersDao;
use App\Dao\UserStockDao;
use App\Services\Code;

class ShopsController extends BaseController
{


    public function lists(){
        if(getIsHasPage()){
            return Code::message('',200,UsersDao::get_shop_page(request()->all()));
        }
        return view('admin.shops.shop');
    }

    public function hexiaos(){
        if(getIsHasPage()){
            return  Code::message('',200,OrdersDao::get_order_child_he(request()->all()));
        }

        return view('admin.shops.hexiaos');
    }
    public function kucun(){
        if(getIsHasPage()){
            return Code::message('',200,UserStockDao::get_user_stock_page(request()->all()));
        }

        return view('admin.shops.kucun');
    }

}
